cmake_minimum_required(VERSION 3.5.1)


add_library(lat_controller lat_controller.cc   )
target_link_libraries(lat_controller
    cyber  
    common
    control_common
    Eigen3::Eigen
       )




add_library( lon_controller  lon_controller.cc  )
target_link_libraries( lon_controller
    cyber  
    common
    control_common
    Eigen3::Eigen
    localization
  )




add_library( mpc_controller  mpc_controller.cc  )
target_link_libraries( mpc_controller
    cyber  
    common
    control_common
    Eigen3::Eigen

  )




add_library( controller  )
target_link_libraries( controller
        controller_agent
        controller_interface
        lat_controller
        lon_controller
        mpc_controller

  )




add_library( controller_agent  controller_agent.cc  )
target_link_libraries( controller_agent
    lat_controller
    lon_controller
    mpc_controller
    cyber  
    common
    control_common
    control_proto
    Eigen3::Eigen
    canbus_proto
  )



